//
//  SocketChannelPool2Shell.m
//  etionLib
//
//  Created by xqls on 12-5-15.
//  Copyright (c) 2012年 GuangZhouXuanWu. All rights reserved.
//

#import "RequestChannelPoolShell.h"

#import "RequestChannelPool.h"

@implementation CRequestChannelPoolShell

static CRequestChannelPool *s_scpool;

+ (void)initRequestChannelPool
{
    if (s_scpool == nil)
        s_scpool = [CRequestChannelPool new];
}

+ (void)releaseRequestChannelPool
{
    ReleaseObj(s_scpool);
}

+ (void)startRequestRunLoop
{
    [s_scpool startRequestRunLoop];
}

+ (void)stopRequestRunLoop
{
    [s_scpool stopRequestRunLoop];
}

+ (void)cancelRequestRequest
{
    [s_scpool cancelRequest];
}

+ (void)removeRequestChannel:(CRequestChannel*(^)())request
{
    [s_scpool removeRequestChannel:request];
}

+ (void)cancelRequestChannel:(CRequestChannel *)request
{
    [s_scpool cancelRequestChannel:request];
}

+ (BOOL)addRequestChannel:(CRequestChannel *(^)())channel
{
    return [s_scpool addRequestChannel:channel];
}

@end
